package o;

import android.content.Context;
import o.bqj.a;
import o.bqj.b;

public class bql {
    int ˊ;
    Context ˎ;
    int ॱ;

    public bql(Context context) {
        if (context == null) {
            context = ContentManager.getInstant().getContext();
        }
        this.ˎ = context;
        ॱ();
    }

    public int ˋ() {
        return a.ʽ;
    }

    public int ˊ() {
        return a.ˎ;
    }

    public int ˎ() {
        return azb.ॱ(null, 0) / ((this.ˎ.getResources().getDimensionPixelSize(b.ˋ) + this.ˊ) + this.ॱ);
    }

    public int ˏ() {
        int ˎ = ˎ();
        int ॱ = azb.ॱ(null, 0);
        if (ˎ > 1) {
            return (ॱ - ((this.ˊ + this.ॱ) * ˎ)) / (ˎ - 1);
        }
        return 0;
    }

    protected void ॱ() {
        this.ˊ = this.ˎ.getResources().getDimensionPixelSize(b.ᐝ);
        this.ॱ = this.ˎ.getResources().getDimensionPixelSize(b.ʻ);
    }

    public static bql ॱ(Context context, boolean z) {
        if (z) {
            return new bqo(context);
        }
        return new bql(context);
    }
}
